<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="recording and transcoding system">
    <meta name="author" content="typefo">
    <link rel="icon" href="favicon.ico">
    <title>pbxMon System</title>
    <link type="text/css" rel="stylesheet" href="/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="/css/bootstrap-theme.min.css">
    <link type="text/css" rel="stylesheet" href="/css/system.css">
  </head>
  <body>
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand">
            <img alt="Brand" src="/img/logo.png" width="34" style="margin-top:-8px" />
          </a>
          <a class="navbar-brand">pbxMon</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="/cdr">通话记录</a></li>
            <li><a href="/server">网关管理</a></li>
            <li><a href="/route">路由管理</a></li>
            <li><a href="/interface">接口管理</a></li>
            <li><a href="/report">数据报表</a></li>
            <li><a href="/system/status">服务器状态</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="/system/option"><span class="glyphicon glyphicon-cog"></span> 系统设置</a></li>
            <li><a href="/logout"><span class="glyphicon glyphicon-log-out"></span> 退 出</a></li>
          </ul>
        </div>
      </div>
    </nav>
    <div class="container">
      <div class="row">
        <ol class="breadcrumb">
          <li><a href="/cdr">Home</a></li>
          <li><a href="#">System</a></li>
          <li class="active">Status</li>
          <li class="pull-right help"><span class="glyphicon glyphicon-question-sign"></span> <a href="#">帮助信息</a></li>
        </ol>
      </div>
      <div class="row">
        <div class="container main">
          <div class="row">
            <div class="col-xs-2 col-sm-2 col-md-2" style="width:120px"><span class="glyphicon glyphicon-flash"></span> <b>pbx系统:</b></div>
            <div class="col-xs-10 col-sm-10 col-md-10"><?php echo 'pbxMon ',$version,'<small class="text-muted"> ( ',$status['uptime'],' )</small>';?></div>
          </div>
          <div class="row">
            <div class="col-xs-2 col-sm-2 col-md-2" style="width:120px"><span class="glyphicon glyphicon-copyright-mark"></span> <b>CPU型号:</b></div>
            <div class="col-xs-10 col-sm-10 col-md-10"><?php echo $status['cpuinfo'];?></div>
          </div>
          <div class="row">
            <div class="col-xs-2 col-sm-2 col-md-2" style="width:120px"><span class="glyphicon glyphicon-expand"></span> <b>操作系统:</b></div>
            <div class="col-xs-10 col-sm-10 col-md-10"><?php echo $status['uname'];?></div>
          </div>
          <div class="row">
            <div class="col-xs-2 col-sm-2 col-md-2" style="width:120px"><span class="glyphicon glyphicon-sound-dolby"></span> <b>内存使用:</b></div>
            <div class="col-xs-10 col-sm-10 col-md-10">
              <div class="progress">
                <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $status['memory']['percentage'];?>%;">
                  <?php echo $status['memory']['percentage'];?>%
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-xs-2 col-sm-2 col-md-2" style="width:120px"><span class="glyphicon glyphicon-hdd"></span> <b>磁盘用量:</b></div>
            <div class="col-xs-10 col-sm-10 col-md-10">
              <div class="progress">
                <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo 100 - $status['hard']['percentage'];?>%;">
                  <?php echo 100 - $status['hard']['percentage'];?>%
                </div>
              </div>
            </div>
          </div>
          <br /><hr />
          <div class="row" style="padding:0px 10px">
            <pre style="background-color:#ffffff;border:0px"><?php echo $pbx;?></pre>
          </div>
        </div>
      </div>
    </div>
  </body>
  <script type="text/javascript" src="/js/jquery.min.js"></script>
  <script type="text/javascript" src="/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="/js/layer.js"></script>
</html>
